package cc.higou.service;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 说明：后台管理控制器
 *
 * @author:dongxing
 * @time:--
 */
@Controller
public class CenterAction {
    //主页的跳转
    @RequestMapping(value = "/console/{pageName}.do")
    public String centerShow(@PathVariable("pageName") String pageName) {
        return pageName;
    }

    //frame的跳转
    @RequestMapping(value = "/console/frame/{pageName}.do")
    public String centerFrameShow(@PathVariable("pageName") String pageName) {

        return "frame/" + pageName;
    }


    //type的跳转
    @RequestMapping(value = "/console/type/{pageName}.do")
    public String centerTypeShow(@PathVariable("pageName") String pageName) {
        return "type/" + pageName;
    }



}
